package com.css.dzj.dzjap.modules.lawenforcesuper.service;


import com.css.dzj.dzjap.modules.info.entity.ApExpertEntity;
import com.css.dzj.dzjap.modules.lawenforcesuper.entity.ExpregulatConnectExpertEntity;
import com.css.dzj.dzjap.modules.lawenforcesuper.view.ExtractExpertView;
import com.querydsl.core.QueryResults;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.domain.Pageable;

/**
 * 审查专家监管、专家关联service
 */
public interface ExpregulatConnectExpertService {

    /**
     * 保存
     * @param connectExpertEntity
     */
    void save(ExpregulatConnectExpertEntity connectExpertEntity);

    /**
     * 通过审查专家监管任务id分页查询抽取专家视图List
     * @param regulatId
     * @return
     */
    QueryResults<ExtractExpertView> queryExpertViewByRegulateId(Pageable pageable, String regulatId);

    /**
     * 通过专家抽取id分页查询抽取出的专家list
     * @param pageable
     * @param regulatId
     * @return
     */
    QueryResults<ApExpertEntity> queryExpertByRegulateId(Pageable pageable, String regulatId);

    /**
     * 通过任务id分页查询专家list
     * @param pageable
     * @param taskId
     * @return
     */
    QueryResults<ApExpertEntity> queryExpertByTaskId(Pageable pageable, String taskId);
}
